#include<iostream>
#include<unistd.h>
int main()
{
    pid_t id=fork();
    if(id==0)
    {
        execl("usr/bin/ls","ls",NULL);
    }
    else if(id>0)
    {
        std::cout<<"父进程"<<std::endl;
    }
    return 0;
}
